<html>
<head>
    <meta charset="utf-8">
    <title>Selector</title>
    <script type='text/javascript' src="../assets/js/jquery-1.8.1.min.js"></script>
    <script type='text/javascript' src="./jquery.copy.js"></script>
    <script language="javascript">
        $(document).ready(function(){
            $("#copy").click(function(){
                var text = $("#text").val()
                alert(text);
                $.copy(text);
            });

        });
    </script>

<body>
<p><b>Values: </b></p>
<br>
<form>
    <textarea name="name" id="text" rows="5" >hello world</textarea>
    <input type="button" value="复制" id="copy" />
</form>
</body>
</html>  